home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group98b.txt / 000116_icon-group-sender _Mon Jun 29 16:24:27 1998.msg < prev    next >
Internet Message Format  |  2000-09-20  |  2KB

  1. Return-Path: <icon-group-sender>
  2. Received: from kingfisher.CS.Arizona.EDU (kingfisher.CS.Arizona.EDU [192.12.69.239])
  3.     by baskerville.CS.Arizona.EDU (8.8.8/8.8.7) with SMTP id QAA25635
  4.     for <icon-group-addresses@baskerville.CS.Arizona.EDU>; Mon, 29 Jun 1998 16:24:26 -0700 (MST)
  5. Received: by kingfisher.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
  6.     id AA01169; Mon, 29 Jun 1998 16:24:14 -0700
  7. Message-Id: <3597BA27.532@gte.net>
  8. Date: Mon, 29 Jun 1998 11:00:39 -0500
  9. From: MJE <evans@gte.net>
  10. Reply-To: evans@gte.net
  11. Organization: None
  12. X-Mailer: Mozilla 3.01 (Win95; I)
  13. Mime-Version: 1.0
  14. To: icon-group@optima.CS.Arizona.EDU
  15. Subject: Re: Retrieving lists from tables
  16. References: <35970078.4332DA12@ix.netcom.com>
  17. Content-Type: text/plain; charset=us-ascii
  18. Content-Transfer-Encoding: 7bit
  19. Errors-To: icon-group-errors@optima.CS.Arizona.EDU
  20. Status: RO
  21. Content-Length: 876
  22.  
  23. Would a two-way table help?  You would have to maintain a second table
  24. indexed by record that stores the list keys.  Every time you do an
  25. action on the first table, you have to do it also on the second one to
  26. keep them synchronized.
  27.  
  28. Mark
  29.  
  30.  
  31.  
  32. Phillip Lee Thomas wrote:
  33. > I'm working on a project where it would be most convenient to store
  34. > information in a table where the index is a list and the value is a
  35. > record; however, I find it not obvious how to retrieve the data as lists
  36. > are retrieved by their ID number, not their value. Any suggestions?
  37. > record ref(part1,part2)
  38. > # Initially...
  39. >         t := table()
  40. >         L := ["house","horse"]
  41. >         t[L] := ref(1,2)
  42. > # Later...
  43. >        L2 := ["house","horse"]
  44. > Now I want to find out if a list with the content of L2 is in table t,
  45. > and if so to augment the value of its part1.
  46. > -- Phillip Thomas
  47.  
  48.